

#include "Server.h"




int main(int argc, char* argv[])
{
	int port = 0;
	char strPort[30];
	cout << "FTP Server" << endl;
	if(argc < 2)
	{
		cout << "Enter the port you want to use: ";
		cin >> strPort;
	}
	else
	{
		port = atoi(argv[1]);
	}

	Server server(port);
	try
	{
		server.run();
	}
	catch(char* ex)
	{
		cerr << "Error: " << ex << WSAGetLastError() << endl;
	}
	return 0;
}